package mvc.model.service.impl;

import mvc.model.dao.UserDao;
import mvc.model.dao.impl.UserDaoImpl;
import mvc.model.pojos.UserBean;
import mvc.model.service.LoginService;

public class LoginServiceImpl implements LoginService {
    private final static UserDao userDao;
    static {
        userDao = new UserDaoImpl();
    }
    @Override
    public UserBean login(String uname, String upass) {
        return userDao.login(uname, upass);
    }

    @Override
    public boolean addUser(UserBean userBean) {
        return userDao.addUser(userBean);
    }

}
